package com.vshop.saas.run;

import com.vshop.framework.core.log.LogPrintStream;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

//@MapperScan(basePackages = "com.vshop.**.mapper", sqlSessionTemplateRef = "sqlSessionTemplate")
@MapperScan(basePackages = {"com.vshop.**.mapper"}, annotationClass = Mapper.class, sqlSessionTemplateRef = "sqlSessionTemplate")
@SpringBootApplication
public class AppRun {
    public static void main(String[] args) {
        LogPrintStream.init();
        SpringApplication.run(AppRun.class, args);
        System.out.println("启动成功");
    }
}
